﻿Public Class AdvLeft
    Inherits System.Web.UI.UserControl

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not (IsPostBack) Then
            Loaddm()
        End If
    End Sub

    Private Sub Loaddm()
        DataList1.DataSource = QuangCao.LoadAdv()
        DataList1.DataBind()
    End Sub

    Protected Sub DataList1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DataList1.SelectedIndexChanged
        Response.Redirect("LinkQuangCao")
    End Sub
End Class